package com.project.psc.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.project.psc.bean.SupplyGoodsBean;
import com.project.psc.mapper.ISupplyGoodsMapper;
import com.project.psc.service.ISupplyGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class SupplyGoodsServiceImpl implements ISupplyGoodsService {
    @Autowired
    private ISupplyGoodsMapper supplyGoodsMapper;
    public List<SupplyGoodsBean> findAll(String pact){
        QueryWrapper<SupplyGoodsBean> qw=new QueryWrapper<>();
        qw.eq("sg_pact",pact);
        return supplyGoodsMapper.selectList(qw);
    }
}
